package com.wjerp.tplus.server.common.constant;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 定义系统中用到的Redis键
 */
public class RedisKey {
    static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");

    private static String currentDate = simpleDateFormat.format(new Date());

    /**
     * 没有过期的Token池
     */
    public static final String LOGIN_USER_TOKEN = "LOGIN_USER_TOKEN";


    /**
     * 注销池
     */
    public static final String LOGOUT_USER = currentDate + "LOGOUT_USER";


    /**
     * 存储access_token 信息
     */
    public static final String API_BASIC_AUTH = "API_BASIC_AUTH";

    /**
     * 图片验证码
     */
    public static final String CAPTCHA = "CAPTCHA";

    /**
     * 发票池
     */
    public static final String INVOICE_POOL = "INVOICE_POOL";

    /**
     * 增加发票
     */
    public static final String ADD_INVOICE = "ADD_INVOICE";

    /**
     * 企业编码
     */
    public static final String COMPANY_CODE = "COMPANY_CODE";

    /**
     * 系统用户编码
     */
    public static final String SYS_USER_CODE = "SYS_USER_CODE";

    /**
     * 企业账户编码
     */
    public static final String COMPANY_ACCOUNT_CODE = "COMPANY_ACCOUNT_CODE";

    /**
     * 发票编码
     */
    public static final String INVOICE_CODE = "INVOICE_CODE";

    /**
     * 企业账户标记MAP
     */
    public static final String COMPANY_ACCOUNT_MAP = "COMPANY_ACCOUNT_MAP";

    /**
     * 企业账户余额为零
     */
    public static final String ACCOUNT_BALANCE_ZERO = "ACCOUNT_BALANCE_ZERO";

    /**
     * 授权码
     */
    public static final String AUTH_CODE = "AUTH_CODE";

}
